# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-authlib
pkgver=1.0.1
pkgrel=0
pkgdesc="The ultimate Python library in building OAuth and OpenID Connect servers"
url="https://github.com/lepture/authlib"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography"
makedepends="py3-setuptools"
#checkdepends="py3-django py3-flask-sqlalchemy"
options="!check" # missing deps: py3-httpx, py3-starlette,py3-pytest-django
source="https://pypi.io/packages/source/A/Authlib/Authlib-$pkgver.tar.gz"
builddir="$srcdir/Authlib-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
35c8932ef464b3bbe1403bcdd180ab510c0bb8afe0f5f9dd213bd1db4ea99c39b745e8d42ff45afc001689cc9643c5f538a94c824235e4e1cfa2a56f0f895507  Authlib-1.0.1.tar.gz
"
